package com.zmc.member.infrastructure.dao;

import com.zmc.member.infrastructure.entity.ShoppingCartItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmc.member.infrastructure.bean.vo.ShoppingCartSelectedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购物车的商品条目
 *
 * @author zmc
 * @email
 * @date 2024-11-04 17:58:43
 */
@Mapper
public interface ShoppingCartItemDao extends BaseMapper<ShoppingCartItemEntity> {
    void clearHasSelected(@Param("memberId") String memberId);

    void removeBySkuIds(@Param("skuIds") List<String> skuIds, @Param("memberId") String memberId);

    void batchUpdateItem(@Param("memberId") String memberId, @Param("list") List<ShoppingCartItemEntity> list);

}
